package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.EquipmentDocumentMapper;
import com.ruoyi.system.domain.EquipmentDocument;
import com.ruoyi.system.service.IEquipmentDocumentService;

/**
 * documentService业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-31
 */
@Service
public class EquipmentDocumentServiceImpl implements IEquipmentDocumentService 
{
    @Autowired
    private EquipmentDocumentMapper equipmentDocumentMapper;

    /**
     * 查询document
     * 
     * @param id document主键
     * @return document
     */
    @Override
    public EquipmentDocument selectEquipmentDocumentById(Long id)
    {
        return equipmentDocumentMapper.selectEquipmentDocumentById(id);
    }

    /**
     * 查询document列表
     * 
     * @param equipmentDocument document
     * @return document
     */
    @Override
    public List<EquipmentDocument> selectEquipmentDocumentList(EquipmentDocument equipmentDocument)
    {
        return equipmentDocumentMapper.selectEquipmentDocumentList(equipmentDocument);
    }

    /**
     * 新增document
     * 
     * @param equipmentDocument document
     * @return 结果
     */
    @Override
    public int insertEquipmentDocument(EquipmentDocument equipmentDocument)
    {
        return equipmentDocumentMapper.insertEquipmentDocument(equipmentDocument);
    }

    /**
     * 修改document
     * 
     * @param equipmentDocument document
     * @return 结果
     */
    @Override
    public int updateEquipmentDocument(EquipmentDocument equipmentDocument)
    {
        return equipmentDocumentMapper.updateEquipmentDocument(equipmentDocument);
    }

    /**
     * 批量删除document
     * 
     * @param ids 需要删除的document主键
     * @return 结果
     */
    @Override
    public int deleteEquipmentDocumentByIds(Long[] ids)
    {
        return equipmentDocumentMapper.deleteEquipmentDocumentByIds(ids);
    }

    /**
     * 删除document信息
     * 
     * @param id document主键
     * @return 结果
     */
    @Override
    public int deleteEquipmentDocumentById(Long id)
    {
        return equipmentDocumentMapper.deleteEquipmentDocumentById(id);
    }
}
